package com.springboot_shopping.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.springboot_shopping.vo.IndexProductVo;
import com.springboot_shopping.entity.Product;
import com.springboot_shopping.vo.ProductDetailVo;

import java.util.List;

public interface ProductService {
    List<Product> findAll();
    //PageInfo<Product> getPage(Product  product, Integer pageNum);

    IPage<Product> getPage(Product product, Integer pageNum);

    //获取商品详情
    ProductDetailVo getProductDetail(Integer id);

    // 新增方法：获取首页展示的商品
    List<IndexProductVo> getProductsForIndex();
}
